﻿/*
 * ============ [ 废土 ] ============
 *
 * [ 维护者 ]  argoran@gmail.com
 * [  状态  ]  原型
 *
 * ============ [ 注释 ] ============
 *
 * 存放程序常量的内部静态类
 *
 * ==================================
 */

using System;

namespace LastLand.Data.Global
{
    internal static class CConst
    {
        public const String USER_LIST_TXT = "user_list.txt";
        public const String USER_DATA_TXT_PREFIX = "user_data";
        public const String USER_DATA_TXT_SUFFIX = ".txt";

        public const String COMMAND_CLOSE_SERVER = "close";
        public const String COMMAND_EXIT = "exit";
        public const String COMMAND_IP_LIST = "iplist";
        public const String COMMAND_START_SERVER = "start";

        public const Int32 CLIENT_MESSAGE_NEW_ACCOUNT = 10;
        public const Int32 CLIENT_MESSAGE_CREATE_NORMAL = 11;
        public const Int32 CLIENT_MESSAGE_CREATE_LEADER = 12;
        public const Int32 CLIENT_MESSAGE_PLAY = 13;
        public const Int32 CLIENT_MESSAGE_LOGIN = 14;
        public const Int32 CLIENT_MESSAGE_LOGOUT = 15;
        public const Int32 CLIENT_MESSAGE_MOVE_EAST = 100;
        public const Int32 CLIENT_MESSAGE_MOVE_SOUTH = 101;
        public const Int32 CLIENT_MESSAGE_MOVE_WEST = 102;
        public const Int32 CLIENT_MESSAGE_MOVE_NORTH = 103;
        public const Int32 CLIENT_MESSAGE_TALK = 104;
        public const Int32 CLIENT_MESSAGE_COLLECT = 105;
        public const Int32 CLIENT_MESSAGE_BUILD_FARM = 106;
        public const Int32 CLIENT_MESSAGE_BUILD_MINE = 107;
        public const Int32 CLIENT_MESSAGE_BUILD_VILLAGE = 108;
        public const Int32 CLIENT_MESSAGE_BUILD_FORT = 109;
        public const Int32 CLIENT_MESSAGE_BUILD_CITY = 110;
        public const Int32 CLIENT_MESSAGE_BUILD_GRANARY = 111;
        public const Int32 CLIENT_MESSAGE_BUILD_FORGE = 112;
        public const Int32 CLIENT_MESSAGE_BUILD_MARKET = 113;
        public const Int32 CLIENT_MESSAGE_BUILD_COURTHOUSE = 114;
        public const Int32 CLIENT_MESSAGE_BUY_MELEE = 115;
        public const Int32 CLIENT_MESSAGE_BUY_RANGED = 116;
        public const Int32 CLIENT_MESSAGE_BUY_SIEGE = 117;
        public const Int32 CLIENT_MESSAGE_BUY_HORSE = 118;
        public const Int32 CLIENT_MESSAGE_BUY_ARMOR = 119;
        public const Int32 CLIENT_MESSAGE_BUY_SHIELD = 120;
        public const Int32 CLIENT_MESSAGE_BUY_TMELEE = 121;
        public const Int32 CLIENT_MESSAGE_BUY_TRANGED = 122;
        public const Int32 CLIENT_MESSAGE_BUY_TSIEGE = 123;
        public const Int32 CLIENT_MESSAGE_BUY_TMOUNTED = 124;
        public const Int32 CLIENT_MESSAGE_BUY_TAGRICULTURE = 125;
        public const Int32 CLIENT_MESSAGE_BUY_TINDUSTRY = 126;
        public const Int32 CLIENT_MESSAGE_BUY_TCOMMERCE = 127;
        public const Int32 CLIENT_MESSAGE_BUY_TCONSTRUCTION = 128;
        public const Int32 CLIENT_MESSAGE_ATTACK = 129;
        public const Int32 CLIENT_MESSAGE_DEFEND = 130;
        public const Int32 CLIENT_MESSAGE_RETREAT = 131;
        public const Int32 CLIENT_MESSAGE_INFO_SERVER = 132;
        public const Int32 CLIENT_MESSAGE_INFO_ACCOUNT = 133;
        public const Int32 CLIENT_MESSAGE_INFO_WORLD = 134;
        public const Int32 CLIENT_MESSAGE_INFO_CHARACTER = 135;
        public const Int32 CLIENT_MESSAGE_INFO_GRID = 136;
        public const Int32 CLIENT_MESSAGE_INFO_CITY = 137;
        public const Int32 CLIENT_MESSAGE_INFO_COUNTRY = 138;
        public const Int32 CLIENT_MESSAGE_INFO_COMBAT = 139;

        public const Int32 SERVER_MESSAGE_INVALID_USERNAME_OR_PASSWORD = 2001;
        public const Int32 SERVER_MESSAGE_ACCOUNT_LOGGED_IN_BY_ANOTHER_CLIENT = 2002;
        public const Int32 SERVER_MESSAGE_NO_COUNTRY_AVAILABLE = 2003;
        public const Int32 SERVER_MESSAGE_NO_GRID_AVAILABLE = 2004;

        public const Int32 SERVER_MESSAGE_CLIENT_LOGGED_IN = 2005;
        public const Int32 SERVER_MESSAGE_CLIENT_NOT_LOGGED_IN = 2006;
        public const Int32 SERVER_MESSAGE_CLIENT_PLAYING = 2007;
        public const Int32 SERVER_MESSAGE_CLIENT_NOT_PLAYING = 2008;

        public const Int32 SERVER_MESSAGE_CHARACTER_DEAD = 2009;
        public const Int32 SERVER_MESSAGE_CHARACTER_NOT_DEAD = 2010;
        public const Int32 SERVER_MESSAGE_CHARACTER_IN_COMBAT = 2011;
        public const Int32 SERVER_MESSAGE_CHARACTER_NOT_IN_COMBAT = 2012;
        public const Int32 SERVER_MESSAGE_CHARACTER_HAMMER_LOW = 2013;
        public const Int32 SERVER_MESSAGE_CHARACTER_GOLD_LOW = 2014;

        public const Int32 SERVER_MESSAGE_GRID_IN_COMBAT = 2015;
        public const Int32 SERVER_MESSAGE_GRID_NOT_IN_COMBAT = 2016;
        public const Int32 SERVER_MESSAGE_GRID_HOSTILE_TERRITORY = 2017;
        public const Int32 SERVER_MESSAGE_GRID_NOT_HOSTILE_TERRITORY = 2018;
        public const Int32 SERVER_MESSAGE_GRID_NOT_TERRITORY = 2019;
        public const Int32 SERVER_MESSAGE_GRID_TERRITORY = 2020;
        public const Int32 SERVER_MESSAGE_GRID_HAS_CITY = 2021;
        public const Int32 SERVER_MESSAGE_GRID_NO_CITY = 2022;
        public const Int32 SERVER_MESSAGE_GRID_NO_FACILITY = 2023;

        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_AGRICULTURE = 2024;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_INDUSTRY = 2025;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_COMMERCE = 2026;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_CONSTRUCTION = 2027;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_MELEE = 2028;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_RANGED = 2029;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_SIEGE = 2030;
        public const Int32 SERVER_MESSAGE_COUNTRY_TECH_LOW_MOUNTED = 2031;

        public const Int32 SERVER_MESSAGE_COMPLETE_NEW_ACCOUNT = 2032;
        public const Int32 SERVER_MESSAGE_COMPLETE_CREATE_NORMAL = 2033;
        public const Int32 SERVER_MESSAGE_COMPLETE_CREATE_LEADER = 2034;
        public const Int32 SERVER_MESSAGE_COMPLETE_PLAY = 2035;
        public const Int32 SERVER_MESSAGE_COMPLETE_LOGIN = 2036;
        public const Int32 SERVER_MESSAGE_COMPLETE_LOGOUT = 2037;
        public const Int32 SERVER_MESSAGE_COMPLETE_MOVE = 2038;
        public const Int32 SERVER_MESSAGE_COMPLETE_TALK = 2039;
        public const Int32 SERVER_MESSAGE_COMPLETE_COLLECT = 2040;
        public const Int32 SERVER_MESSAGE_COMPLETE_BUILD = 2041;
        public const Int32 SERVER_MESSAGE_COMPLETE_BUY = 2042;
        public const Int32 SERVER_MESSAGE_COMPLETE_ATTACK = 2043;
        public const Int32 SERVER_MESSAGE_COMPLETE_DEFEND = 2044;
        public const Int32 SERVER_MESSAGE_COMPLETE_RETREAT = 2045;
        public const Int32 SERVER_MESSAGE_COMPLETE_INFO = 2046;

        public const Int32 USER_STATUS_CONNECTED = 0;
        public const Int32 USER_STATUS_LOGGED_IN = 1;
        public const Int32 USER_STATUS_IN_GAME = 2;

        public const Int32 EVENT_COMBAT_UPDATE_COUNTER = 10;
        public const Int32 EVENT_WORLD_UPDATE_COUNTER = 11;
        public const Int32 EVENT_CHARACTER_UPDATE_COUNTER = 12;

        public const Char DELIMITER_COMMAND = ':';
        public const Char DELIMITER_ARGUMENT = ' ';
        public const Char DELIMITER_USERINFO = ',';
        public const Char DELIMITER_USERACCOUNT = ':';
    }
}
